package com.edu.mapper;


import com.edu.bean.User;
import org.apache.ibatis.annotations.Param;

import java.awt.print.Book;
import java.util.List;

/**
 * @Author:zyn
 * @Date:2025/11/14--11:42:47
 */
public interface UserMapper {

    int insertUser(@Param("userList") List<User> userList);

    int deleteUser(int userId);

    int updateUser(User user);

    List<User> selectAll();

    User selectUserById(int userId);

    User selectUserByNameAndPassword(@Param("username") String username,@Param("password") String password);

    User selectUserByName(String username);
}
